import request from "@/request/api";

//分级分项验收标准接口
//1.分级分项验收标准查询接口
export function queryClassificAndSubList(data) {
  return request({
    url: "/eam-service-standard/grade/page",
    method: "get",
    params: data,
  });
}
//1.根据id查询标准详情
export function queryClassificAndSubDetail(data) {
  return request({
    url: "/eam-service-standard/grade",
    method: "get",
    params: data,
  });
}
//2、分级分项验收标准新增接口
export function addClassificAndSub(data) {
  return request({
    url: "/eam-service-standard/grade",
    method: "post",
    data: data,
  });
}
//2、分级分项验收标准修改接口
export function updateClassificAndSub(data) {
  return request({
    url: "/eam-service-standard/grade",
    method: "put",
    data: data,
  });
}
//3、分级分项验收标准删除接口
export function deleteClassificAndSub(data) {
  return request({
    url: "/eam-service-standard/grade",
    method: "delete",
    params: data,
  });
}

//设置标准状态
export function setClassificAndSubStatus(data) {
  return request({
    url: "/eam-service-standard/grade/updateStatus",
    method: "put",
    params: data,
  });
}
//设置为公共标准
export function setCommonClassificAndSub(data) {
  return request({
    url: "/eam-service-standard/grade/updateToPublic",
    method: "put",
    params: data,
  });
}
//分级分项验收标准导入接口
export function importClassificAndSubStandard(formData) {
  return request({
    url: "/eam-service-standard/patrol/import",
    method: "post",
    data: formData,
  });
}





